﻿@model Lost_and_Found.Models.ViewModel.LostModel
@{
    ViewBag.Title = "Lost";
}

<script src="@Url.Content("~/Scripts/LAF/check_lost.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/tagmanager-master/bootstrap-tagmanager.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/tagmanager-master/bootstrap-tagmanager.css")" type="text/css" rel="stylesheet"/>

<div class="row">
    <h1 class="page_title">báo mất đồ...</h1>
</div>

<br />
@using (Html.BeginForm("Lost", "LAF", FormMethod.Post, new { @id = "LostForm" }))
{    
    <div onclick="showValue()">
        <div class="row">
            <span class="label_heading">
                @Html.LabelFor(m => m.Title)
                @Html.ValidationMessageFor(m => m.Title)
                
            </span>
            @Html.TextBoxFor(m => m.Title)
        </div>
         <div class="row">
            <span class="label_heading">
                @Html.LabelFor(m => m.LostItemName)
            </span>
            @Html.TextBoxFor(m => m.LostItemName, new {onchange = "check_lost:showValue()", onkeyup = "check_lost:doKeyUp(event)" })
        </div>
        <div class="row">
            <span class="label_heading">
                @Html.LabelFor(m => m.Date)
            </span>
            <input type="date" name="Date" autocomplete="on" required="required" />
        </div>
        <div class="row">
            <span class="label_heading">
                @Html.LabelFor(m => m.Location)
            </span>
            @Html.TextBoxFor(m => m.Location)
        </div>
       <div class="row">
            <span class="label_heading">
                @Html.LabelFor(m => m.Description)
            </span>
            @Html.TextBoxFor(m => m.Description)
        </div>

    </div>
    <input type="hidden" id="hiddenTag" value="" />
    <div id="att">
    </div>
    <div class="row buttons">
        <input id="CreateProjectButton" name="CreateProjectaButton" class="ok" value="Ðăng bài" type="submit">
        <div class="clear"></div>
    </div>
    <script type="text/javascript">
        jQuery("#LostItemName").tagsManager({
            typeahead: true,
            typeaheadAjaxPolling: true,
            typeaheadAjaxSource: "/LAF/LookupTags",
            hiddenTagListName: "hiddenTagList",
            validator: false
        });
        jQuery("#Location").tagsManager({
            typeahead: true,
            typeaheadAjaxPolling: true,
            typeaheadAjaxSource: "/LAF/LocationTags",
            hiddenTagListName: "hiddenTagLocation",
            validator: false
        });
    </script>
}
